﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ModuleA.cs" company="ABC">
//   
// </copyright>
// <summary>
//   Defines the ModuleA type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Abc.Modules.Business.A
{
    using Abc.Modules.Business.A.Views;

    using Microsoft.Practices.Prism.Modularity;
    using Microsoft.Practices.Prism.Regions;
    using Microsoft.Practices.Unity;

    public class ModuleA : IModule
    {
        #region PUBLIC PROPERTIES
        [Dependency]
        public IUnityContainer Container { get; set; }

        [Dependency]
        public IRegionManager RegionManager { get; set; }
        #endregion

        #region IMODULE MEMBERS
        public void Initialize()
        {
            RegionManager.RegisterViewWithRegion("NavBarRegion", () => Container.Resolve<ModuleANavBar>());
            //RegionManager.RegisterViewWithRegion("RibbonRegion", () => Container.Resolve<ModuleARibbonPage>());
            RegionManager.RegisterViewWithRegion("BarManagerRegion", () => Container.Resolve<ModuleABarManager>());
        }

        #endregion
    }
}
